<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    '[api]' => [
        // 登录注册，找回密码
        'register$' => 'register/register',
        'register/verifycode' => 'register/verifycode',
        'login/phone' => 'register/phonelogin',
        'login/wechat' => 'register/wechatLogin',
        'resetPassword' => 'register/resetPassword',

        // 首页
        'notifies' => 'home/notifies',
        'banners' => 'home/banners',
        'sightLists' => 'home/sightLists',
        'hots' => 'home/hots',
        'ticketLists' => 'home/ticketLists',
        'search'      => 'home/search',
        'sightDetail' => 'home/sightDetail',
        'sightProductList' => 'home/sightProductList',
        'sightProductDetail' => 'home/sightProductDetail',//景区商品详情
        
        // 投诉
        'complaints$' => 'feedback/info',
        'complaintLists' => 'feedback/history',


        // common
        'verifycode' => 'index/verifyCode',

        //订单
        'addOrder'   => ['order/addOrder', ['method'=>'get|post']],
        'payOrderWX' => ['order/payOrderWX', ['method'=>'get|post']],
        'payOrderstatus' => ['order/payOrderstatus', ['method'=>'get|post']],
        'orderReturnWX' => ['order/orderReturnWX', ['method'=>'get|post']],
        'orderList'     => ['order/orderList', ['method'=>'get|post']],
        'orderDetail'  => ['order/orderDetail', ['method'=>'get|post']],
        'cancelOrder'  => ['order/cancelOrder', ['method'=>'get|post']],
        'refundStatus' => ['order/refundStatus', ['method'=>'get|post']],
        'refundFlow' => ['order/refundFlow', ['method'=>'get|post']],

        //个人中心
        'getUserInfo' => 'mine/getUserInfo',
        'collectionLists' => 'mine/collectionLists',
        'cancelCollection' => ['mine/cancelCollection', ['method'=>'get|post']],
        'updateNickname' => ['mine/updateNickname', ['method'=>'get|post']],
        'updateBirthday' => ['mine/updateBirthday', ['method'=>'get|post']],
        'updateHeadImg' => ['mine/updateHeadImg', ['method'=>'get|post']],
        'logout'        => ['mine/logout', ['method'=>'get|post']]
    ]
];
